undoChanged
Type
message
Summary
Sent to the current card when the Undo action changes.
Syntax
undoChanged
Description
Handle the undoChanged message if you want to intercept the "Undo" menu item, providing your own Undo stack.
Undoable actions include painting actions, deletion of objects, moving of controls, and editing actions in a field. When the user performs one of these actions, thus changing what happens as a result of choosing Edit → Undo from the menubar, LiveCode sends the undoChanged message to the current card.
Examples
on undoChanged
global lastFieldState
put field "Edit" into lastFieldState
end undoChanged
Related
glossary: current card, message
command: undo
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
Platforms
desktop